<script type="text/javascript">
	var caldef1 =
	{
		firstday : 0,
		dtype : 'yyyy-MM-dd',
		width : 250,
		windoww : 300,
		windowh : 200,
		border_width : 0,
		border_color : '#0000d3',
		dn_css : 'clsDayName',
		cd_css : 'clsCurrentDay',
		wd_css : 'clsWorkDay',
		we_css : 'clsWeekEnd',
		wdom_css : 'clsWorkDayOtherMonth',
		weom_css : 'clsWeekEndOtherMonth',
		headerstyle :
		{
			type : "buttons",
			imgnextm : 'img/forward.jpg',
			imgprevm : 'img/back.jpg',
			css : 'clsDayName'
		},
		showtime : true,
		monthnames : ["January", "February", "March", "April", "May", "June",
			"July", "August", "September", "October", "November", "December"],
		daynames : ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
		template_path : 'http://localhost/GMS/library/javascript/calendar/Builder/',
		img_path : 'http://localhost/GMS/library/javascript/calendar/Builder/img/'

	}; 
	var c3 = new CodeThatCalendar(caldef1); 


</script>

<form id="insert_products_form" method="POST" 
		action="<{$smarty.const.APPLICATION_URL}>imports/insert/">
	<table border="0" cellpadding="10px">
		<tr>
			<td>Date</td>
			<td>
				<input id="im_date" name="im_date" size=30 readonly />
				<input type="button" onClick="c3.popup('im_date');" value="..."/>
			</td>	
		</tr>
		
		<tr>
			<td>Employee</td>
			<td>
				<select id="im_emp_id" name="im_emp_id">
					<{foreach from=$employeesList item=phantu}>
						<option value="<{$phantu.emp_id}>"><{$phantu.emp_name}></option>					
					<{/foreach}>
				</select>
			</td>
		</tr>
		<tr>
			<td>Supplier</td>
			<td>
				<select id="im_sup_id" name="im_sup_id">
					<{foreach from=$suppliersList item=phantu}>
						<option value="<{$phantu.sup_id}>"><{$phantu.sup_name}></option>
					<{/foreach}>
				</select>
			</td>
		</tr>
		<tr>
			<td>Payment</td>
			<td>
				<select id="im_pay_id" name="im_pay_id">
					<{foreach from=$paymentsList item=phantu}>
						<option value="<{$phantu.pay_id}>"><{$phantu.pay_method}></option>					
					<{/foreach}>
				</select>
			</td>
		</tr>
		<tr>
			<td>Transaction</td>
			<td>
				<{assign var=count value = 1}>
				<{while $count<=3}>
				Product:
				<select id="reci_pro_id<{$count}>" name="reci_pro_id<{$count}>">
					<option value="-1">[Select Product]</option>
					<{foreach from=$productList item=phantu}>
						<option value="<{$phantu.pro_id}>"><{$phantu.pro_name}></option>					<{/foreach}>
				</select>
				Places:
				<select id="reci_propla_id<{$count}>" name="reci_propla_id<{$count}>">
					<option value="-1">[Select Places]</option>
					<{foreach from=$placeList item=phantu}>
						<option value="<{$phantu.pla_id}>"><{$phantu.pla_name}></option>					<{/foreach}>
				</select>
				Quantity
				<input type="text" id="reci_quantity<{$count}>" name="reci_quantity<{$count}>" size="10"/>
				Price
				<input type="text" id="reci_price<{$count}>" name="reci_price<{$count}>" size="10"/>
				<br/><br/>
				<{assign var=count value = $count+1}>
				<{/while}>
				
			</td>
		</tr>
		<tr>
			<td colspan=2 align="left">
				<input type="submit" id="insert_import_btn" 
					name="insert_import_btn" value="Insert an Import"/>
			</td>
		</tr>
		
	</table>
</form>